Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Tue, 12 Jan 2021 11:45:42 +0000 (11:45 +0000)
committerGraham Inggs <ginggs@debian.org>
Tue, 12 Jan 2021 11:45:42 +0000 (11:45 +0000)
commit95bf5598c368b621d5efa76e04ded0463ed3f571
tree1fad426fb986311f3d7a513f2800f6087b631cda
parent958b5659bd8c0a201d651a1d1d09f7d87087622d
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas